<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" href="css/base.css" type="text/css" />
<script type="text/javascript">
	window.onload = function(){
		
		var s=window.location.search;
		s=s.substring(s.indexOf("=")+1);
		var cancel=document.getElementById("cancel");
		cancel.innerHTML='<a href="pl_showPlInfo.action?pid='+s+'" class="return_btn" id="cancel">取消</a>';
		var showArea=document.getElementById("showArea");
		var addPlc=document.getElementById("addPlc");
		var k=0;
		addPlc.onclick=function(){
			showArea.innerHTML += '<ul class="dele_ul" >'
				+'<li><label>子品类名称：</label>'
				+'<input type="text" name="listPlcAddVO['+k+'].pcname"/><input type="hidden" name="listPlcAddVO['+k+'].pid" value="'+s+'"/></li>'
				+'<div class="clr"></div>'
				+'<a class="detele_upload"></a></ul>'; 
				k++;
				var aList = document.querySelectorAll('.detele_upload');
				for(var i=0;i<aList.length;i++){
					aList[i].onclick = function(){
						showArea.removeChild(this.parentNode);
					}
				}
		}
	}


</script>
</head>

<body>
    <div class="main_right_top">您现在所在位置 >
    <a>--添加子品类信息</a> </div>
    <div class="main_right_body"> 
    	<div class="body_content">
            <div class="bridge_fome_all">
              <form action="pl_addPlc.action" method="post">
              <div class="bridge_fome">
                    <div class="bridge_fome_one">
                        <div class="base_infor">
                        	<div class="set_all">
              				  <h1 class="biao_title">子品类信息</h1>
               				 <a href="#" class="set_btn_link" id="addPlc">添加子品类信息</a>
            				</div><!--set_all-->
						 </div><!--base_infor-->
                       <div class="bridge_add_index" style="width:800px;margin: 0px auto;" id="showArea">
							
						</div><!--bridge_add_index-->
                    </div><!--bridge_fome_one-->
					 <div class="regist_btn">
                        <input type="submit" value="保存" />
                        <a class="return_btn" id="cancel" >取消</a>
                 </div>
              </div><!--bridge_fome-->
              </form>
            </div><!--bridge_fome_all-->
         </div><!--body_content-->
    </div> <!--main_right_body-->
</body>
</html>
